 <template>
  <div>
    <p>{{$store.state.n}}</p>
    <button @click="setN">点击++</button>
    <input type="text" >
  <h1>裤子</h1>  
    </div>
</template>
 <script>
export default {
  data() {
    return {};
  },
  methods: {
    setN(){
      this.$store.dispatch("Zactions")
    }
  },
  computed: {},
};
</script>
 <style lang='css'>
</style>